package com.laob.laob_special.common;

import org.springframework.context.annotation.Configuration;
import org.springframework.core.Ordered;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;

/**
 * @author zhangh     
 * @version V1.0.0
 * @projectName laob_special
 * @title     htmlController   
 * @package    com.laob.laob_special.common  
 * @date   2019/9/9 19:04  
 * @explain
 */
@Configuration
public class htmlController  extends WebMvcConfigurerAdapter {

    @Override
    public void addViewControllers( ViewControllerRegistry registry ) {
        registry.addViewController( "/" ).setViewName( "forward:/testContent.html" );
        registry.setOrder( Ordered.HIGHEST_PRECEDENCE );
        super.addViewControllers( registry );
    }

}
